home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-19 / gplot386.zip / MAKEFILE.AMI < prev    next >
Text File  |  1992-06-06  |  3KB  |  108 lines

  1. #
  2. # $Id: Makefile.ami,v 3.26 1992/03/25 04:53:29 woo Exp woo $
  3. #
  4. # Makefile for GNUPLOT documentation (Aztec C v5.xx Version)
  5. #
  6. # Note that the top-level file for documentation is gnuplot.doc.
  7. # See README.
  8. #
  9. # To print manual:
  10. #    make gnuplot.dvi             (for latex)
  11. #    (print or view gnuplot.dvi)
  12. # OR
  13. #    make gnuplot.nroff           (for nroff)
  14. #    (print or view gnuplot.nroff)
  15. #   or
  16. #    make "TROFF=itroff" troff    (for troff; use your troff for itroff here)
  17. #
  18. # $Id: Makefile.ami,v 3.26 1992/03/25 04:53:29 woo Exp woo $
  19.  
  20. # usually overridden by ../Makefile
  21. HELPDEST = /usr/local/lib/
  22.  
  23. # substitute your troff command (and any flags) for this one
  24. TROFF=itroff
  25.   
  26. # substitute cp if you do not have the install program
  27. INSTALL=install
  28.  
  29. # Compiler flags
  30. # -DSYSV if att sys V
  31. # -DMSDOS if MSDOS PS
  32. # -traditional -g -O if gcc (set 'CC = gcc')
  33. # no extra flags for BSD
  34. CFLAGS = 
  35. CC = cc
  36. LN =ln
  37. LFLAGS = -lm -lc
  38.  
  39. # default is what is needed for interactive gnuplot
  40. default: gnuplot.hlp gnuplot.gih
  41.  
  42. ### [tn]roff documentation
  43. troff: gnuplot.ms titlepage.ms
  44.     tbl gnuplot.ms | eqn | $(TROFF) -ms
  45.  
  46. # for screen viewing, or printers with backspace/overstrike, remove the -Tlpr
  47. nroff gnuplot.nroff: gnuplot.ms titlepage.ms
  48.     tbl gnuplot.ms | neqn | nroff -ms -Tlpr > gnuplot.nroff
  49.  
  50. ms gnuplot.ms: doc2ms gnuplot.doc
  51.     doc2ms < gnuplot.doc > gnuplot.ms
  52.  
  53. doc2ms: doc2ms.c
  54.     $(CC) $(CFLAGS) -o doc2ms.o doc2ms.c
  55.     $(LN) -o doc2ms doc2ms.o $(LFLAGS)
  56.  
  57. ### LaTeX documentation
  58. tex gnuplot.tex: doc2tex gnuplot.doc
  59.     doc2tex < gnuplot.doc > gnuplot.tex
  60.  
  61. dvi gnuplot.dvi: gnuplot.tex titlepage.tex
  62.     latex gnuplot.tex
  63.     latex gnuplot.tex
  64.  
  65. doc2tex: doc2tex.c
  66.     $(CC) $(CFLAGS) -o doc2tex.o doc2tex.c
  67.     $(LN) -o doc2tex doc2tex.o $(LFLAGS)
  68.  
  69. # this is how to make gnuplot.hlp
  70. hlp gnuplot.hlp: doc2hlp gnuplot.doc
  71.     doc2hlp < gnuplot.doc > gnuplot.hlp
  72.  
  73. doc2hlp: doc2hlp.c
  74.     $(CC) $(CFLAGS) -o doc2hlp.o doc2hlp.c
  75.     $(LN) -o doc2hlp doc2hlp.o $(LFLAGS)
  76.  
  77. # this is how to make gnuplot.gih
  78. gih gnuplot.gih: doc2gih gnuplot.doc
  79.     doc2gih < gnuplot.doc > gnuplot.gih
  80.  
  81. doc2gih: doc2gih.c
  82.     $(CC) $(CFLAGS) -o doc2gih.o doc2gih.c
  83.     $(LN) -o doc2gih doc2gih.o $(LFLAGS)
  84.  
  85. # this is how to check the gnuplot.doc file
  86. check: checkdoc gnuplot.doc
  87.     checkdoc < gnuplot.doc
  88.  
  89. checkdoc: checkdoc.c
  90.     $(CC) $(CFLAGS) -o checkdoc.o checkdoc.c
  91.     $(LN) -o checkdoc checkdoc.o $(LFLAGS)
  92.  
  93. # For Unix and MSDOS only
  94. install-unix: gnuplot.gih
  95.     $(INSTALL) gnuplot.gih $(HELPDEST)
  96.  
  97. # for VMS only
  98. install-vms: gnuplot.hlp
  99.     $(INSTALL) gnuplot.hlp $(HELPDEST)
  100.  
  101. # remove all derived files
  102. clean:
  103.     rm -f doc2ms gnuplot.nroff gnuplot.ms
  104.     rm -f doc2tex gnuplot.tex gnuplot.dvi gnuplot.aux gnuplot.log gnuplot.toc
  105.     rm -f doc2hlp gnuplot.hlp
  106.     rm -f doc2gih gnuplot.gih
  107.     rm -f checkdoc *~ *.o core a.out
  108.